Skip to content

Conversation

@scottleibrand
Copy link
Contributor

This PR cuts down on spurious/duplicate carbsReq pushover noise:

  • don't send carbsReq alerts if COB is zero due to clock data parsing error
  • run pushover from pump-loop immediately after completing a loop
  • check Nightscout for pushover snoozes (created when another rig has already sent a pushover) immediately before sending one

The latter two combine to eliminate the race condition where two rigs would both send pushover alerts if they completed loops within a minute or two of each other (before cron had a chance to run pushover, update the snooze file to Nightscout, and then run ns-loop to download it to the other rig).

@Foxy7
Copy link
Contributor

Foxy7 commented Jan 19, 2022

@scottleibrand these changes look good, do you need them testing?

@scottleibrand
Copy link
Contributor Author

I think they are ready for broader testing, yes. We have been using this branch on all our rigs and it’s looking good so far. Have kept the PR open until I stop finding more things to fix. :-)

@scottleibrand scottleibrand merged commit da7015c into dev Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants